/**
 * 
 */
package org.iridium.allcomments.persistance;

import java.sql.Connection;
import java.sql.SQLException;

import org.iridium.allcomments.util.DatabaseConn;

/**
 * @author iridium
 * 
 */
abstract public class AbstractSystemDAO {
	protected Connection conn;

	void buildConnection() {
		conn = DatabaseConn.getConnection();
	}

	/**
	 * this method should be invoked after this.buildConnection()
	 */
	void closeConnection() {
		try {
			conn.close();
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
